package cn.leaf.oauth.annotation;

import java.lang.annotation.*;

/**
 *
 * description: url权限注解
 *
 * @author twinkle leaf
 * @version v1.0.0
 * @since 2021-11-02 00:07:00
 * slogan: There are no two identical leaves in the world.
 *
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface PreAuth {

	/**
	 * 是否启用
	 * @return boolean
	 */
	boolean enabled() default true;

	/**
	 * 验证用户是否授权
	 * @return String
	 */
	String hasPerm() default "";
}
